package com.cy1;

import java.util.Arrays;
import java.util.MissingFormatArgumentException;

public class IntegerTest {
    public static void main(String[] args) {
        String s="25 26 108 48 69";
        String[] sarr = s.split(" ");
       /* for (int i=0;i<sarr.length;i++){
            System.out.println(sarr[i]);
        }*/
        int[] arr2 = new int[sarr.length];
        for (int i = 0; i < arr2.length; i++) {
            arr2[i]=Integer.parseInt(sarr[i]);
        }
        Arrays.sort(arr2);
        StringBuilder sb = new StringBuilder();
        for (int i=0;i<arr2.length;i++){
            if (i==arr2.length-1){
                sb.append(arr2[i]);
            }else{
                sb.append(arr2[i]).append(" ");
            }
        }
        System.out.println("最终结果："+ sb.toString());
    }
}
